<?php
/**
 *	Architect Framework
 *
 *	Architect Framework is a light weight object oriented web applications framework written for PHP 5.1.4 and later that provide the tools to develop and deploy a website or application fast and with as little code as possible.
 *
 *	@author Robin Grass, <hello@coffinboy.se>
 *	@link http://architect.kodlabbet.net
 *	@license http://www.opensource.org/licenses/gpl-3.0.html GNU General Public License (v. 3)
 */

/**
 *	Temporary root path
 */
$root_path = dirname(__FILE__);

/**
 *	Output buffer
 */
ob_start();

/**
 *	Set exception and error callbacks.
 */
require_once("{$root_path}/libs/framework/exceptions/architect_exceptionhandler.php");

@ini_set('display_errors', 'On');
//set_error_handler(array('Architect_ExceptionHandler', 'catchError'), E_ALL);
//set_exception_handler(array('Architect_ExceptionHandler', 'catchException'));

/**
 *	Run testsuite.
 */
require_once("{$root_path}/core-testsuite.php");

/**
 *	Load requred base classes
 */
require_once("{$root_path}/libs/framework/core/architect_autoloader.php");
require_once("{$root_path}/libs/framework/core/architect_classdirectorylocator.php");

/**
 *	Register custom autoloading
 */
spl_autoload_register('af_autoload');

/**
 *	Hooks API
 */
require_once("{$root_path}/libs/framework/core/architect_hookapi.php");
?>